package friendsbtt.utils.google;

import com.google.gdata.data.photos.PhotoEntry;

import friendsbtt.utils.IPhoto;

public class Photo implements IPhoto {

	private PhotoEntry basePhoto;
	
	public Photo(PhotoEntry photo){
		this.basePhoto = photo;
	}
	
	@Override
	public String getSrc() {
		return this.basePhoto.getHtmlLink().getHref();
	}

	@Override
	public String getTitle() {
		return this.basePhoto.getTitle().getPlainText();
	}

}
